<?php
/* @var $this SesionController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - login';
$this->breadcrumbs=array(
	'login',
);
?>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css">
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/login.css" />
		<meta name="viewport" content="width-device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0">
	</head>
	<body>
	<div class="form">
		<div class="contenedor">
		<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'login-form',
		'enableAjaxValidation'=>true,
		'stateful'=>true,
	)); ?>
			<form method=post action="inicio.html">
				<title>Inicia sesión</title>
				<table id="iframe">
					<tr>
						<td>Usuario</td>
							<td>
							<div class="row">
								<?php echo $form->textField($model,'usuario',array('placeholder'=>'Ingresa aqui tu usuario')); ?>
								<?php echo $form->error($model,'usuario'); ?>
							</div>
							</td>
					</tr>

					<tr>
						<td>Contraseña</td>
							<td>
							<div class="row">
								<?php echo $form->passwordField($model,'contrasena',array('placeholder'=>'Ingresa aqui tu contraseña')); ?>
								<?php echo $form->error($model,'contrasena'); ?>
							</div>
							</td>
					</tr>

					<tr>
						<td>Establecimiento</td>
							<td>
							<div class="row">
								<?php echo $form->dropDownList($model, 'sucursal', array('1' => 'Florencio Varela', '2' => 'Berazategui','3'=>'Quilmes')); ?>
								<?php echo $form->error($model,'sucursal'); ?>
							</div>
							</td>
					</tr>

					<tr>
						<td colspan=2>
						 <div class="row buttons">
							<?php echo CHtml::submitButton('Entrar',array('value'=>'Entrar')); ?>
						</div>
						</td>
					</tr>
					<tr>
						<td colspan=1>
							<?php /*
							*	<I style='font-size:10px;'><?php echo CHtml::link('¿Olvidaste tu contraseña?',array('/sesion/recuperacion')); ?></I>
							*/?>
							<I style='font-size:15px;'><?php echo CHtml::link('Ingreso Profesionales',array('/sitioprofesional/loginempleado')); ?></I>
						</td>
					</tr>
				</table>
<?php $this->endWidget(); ?>
			</form>
		</div>
		</div>
	</body>
</html>